<table style="width:100%;" class="forumline" cellspacing="0" cellpadding="0">
<tr>
    <td class="row-header"><span>{language text="ban_ip_s"}</span></td>
</tr>
<tr>
     <td class="catBottom">{language text="here_you_can_enter_ip_s_to_ban_on_y"}</td>
</tr>
<tr>
    <td>
{$sValidatorMess}
{messages}

<table cellSpacing="0" cellspacing="0" width="100%">
<tr>
    <th width="18%" align="left" style="font-size:10pt;"><b>{language text="ip"}</b></th>
    <th width="13%" style="font-size:10pt;"><b>{language text="date"}</b></th>
    <th width="13%" style="font-size:10pt;"><SPAN class=gen><b>{language text="time_to_ban"} </b></SPAN></th>
    <th width="13%" style="font-size:10pt;"><b>{language text="time_to_unban"}</b></th>
    <th width="13%" style="font-size:10pt;"><b>{language text="unban"}</b></th>
</tr>
{foreach from=$aIps item=aItem name=aitems}
<tr>
    <td align="left" class="row1">{$aItem.ip}</td>
    <td class="row1">{$aItem.atime}</td>
    <td class="row1">{$aItem.description}</td>
    <td class="row1"><p>{if $aItem.block_until != '0000-00-00 00:00:00'}{$aItem.block_until}{/if}</p></td>
    <td class="row1"><form action="{url link='current' id=$aItem.id}" method="post" onsubmit="return sure('');"><input type="submit" name="act[unban]" value="{language text="unban"}"></form></td>
</tr>
{foreachelse}
<tr>
  <td colspan="5" class="row2">
	<div class="message_info">{language text="there_are_no_banned_ip_addresses"}</div>
  </td>
</tr>
{/foreach}
<tr>
    <td colspan="5" align="left">
        <br />
        <table style="width:100%;" cellpadding="0">
        <tr>
            <td style="width:60%;font-size:7pt;" class="color">
                {include file="$sRootPath/_blocks/pager.html"}
            </td>
            <td style="text-align:right;font-size:7pt;">
                <table style="margin-right:0px;margin-left:auto;">
                <tr>
                {if isset($aPaging.prevUrl)}
                    <td class="mainmenu6" onclick="javascript:window.location.href='{$aPaging.prevUrl}';" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';"><a href="{$aPaging.prevUrl}">&nbsp;&nbsp;{language text="prev_page"}&nbsp;&nbsp;</a></td>
                {/if}
                {if isset($aPaging.nextUrl)}
                    <td class="mainmenu6" onclick="javascript:window.location.href='{$aPaging.nextUrl}';" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';"><a href="{$aPaging.nextUrl}">&nbsp;&nbsp;{language text="next_page"}&nbsp;&nbsp;</a></td>
                {/if}
                </tr>
                </table>
            </td>
        </tr>
        </table>
    </td>
</tr>
<tr>
    <td colspan="5" style="text-align:center;">
        <form action="{url link='current'}" method="post" onsubmit="{$sValidatorJs}" style="margin:0px;">
        <table cellspacing="2" cellpadding="2" width="60%" style="margin:auto; text-align:left;">
        <tr>
            <td width="40%" valign="middle" align="left">
                {language text="ip_address"}:&nbsp;<input type="text" name="val[ip]" value="{$aValues.ip}" />
            </td>
            <td width="40%" align="left">
                {language text="block_period"}:&nbsp;<select name="val[period]">
                {html_options options=$aPeriods selected=$aValues.period}
                </select>
            </td>
            <td width="20%" align="left">
                <input type="submit" name="act[add]" value=" {language text="add"} " />
            </td>
        </tr>
        </table>
        </form>
        <br />
    </td>
</tr>
</table>

</td>
</tr>
</table>